package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.server.handler.SendKeys;
import org.openqa.selenium.support.ui.WebDriverWait;

	public class sprg6 {
	
	public static void main(String[] args) throws InterruptedException {
	WebDriver driver = new FirefoxDriver();
	/*
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

	driver.manage().window().maximize();
	driver.get("http://vtiger.com");
	System.out.println(driver.getTitle());
	driver.findElement(By.id("submitButton")).click();
	driver.findElement(By.linkText("Products")).click();
	driver.navigate().back();
	driver.navigate().forward();
	driver.navigate().refresh();
	*/
	
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	driver.get("file:///C:/Users/anand/Desktop/tst.html");
	driver.manage().window().maximize();
	driver.findElement(By.name("description")).sendKeys("java \n selenium");
	Thread.sleep(1000);
	driver.findElement(By.name("description")).clear();
	Thread.sleep(1000);
	driver.findElement(By.name("description")).sendKeys("hello\n this is anand");
	

		
	}

}
